<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="content">
 *
 * @package woodranch
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
<script type="text/javascript">
	jQuery(document).ready(function($) {
        jQuery( '#menufication-top' ).append( '<div class="small-language"><a href=""><img src="http://project.wedangsusu.com/woodranch/wp-content/plugins/sitepress-multilingual-cms/res/flags/en.png"></a></div>')
		jQuery('img#menufication-header-logo').wrap('<a href="<?php echo esc_url( home_url( '/' ) ); ?>"></a>');
    });
</script>
</head>

<body <?php body_class(); ?>>
<div class="container"><!--[start:container]-->
	<div class="group"><!--[start:group]-->
		<div id="page" class="hfeed site"><!--[start:site]-->
			<?php do_action( 'before' ); ?>
			<header id="masthead" class="site-header" role="banner"><!--[start:header]-->
				<div class="site-branding group"><!--[start:site-branding]-->
					<div class="links three columns alpha">
					
					<?php
					$link_loc = my_option('link_header');
					echo '<a href="'.$link_loc.'">';
					if (ICL_LANGUAGE_CODE == "es"){
					?>
						ENVÍO GRATIS EN TODAS LAS ÓRDENES DE TARJETAS DE REGALO
					<?php
					}else{
					?>
						FREE SHIPPING ON ALL GIFT CARD ORDERS
					<?php
					}
					?>
					</a></div>
					<?php if ( get_theme_mod( 'themeslug_logo' ) ) : ?>
					<div class="site-logo three columns">
						<a href='<?php echo esc_url( home_url( '/' ) ); ?>' title='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>' rel='home'><img src='<?php echo esc_url( get_theme_mod( 'themeslug_logo' ) ); ?>' alt='<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>'></a>
					</div>
					<?php else : ?>
					<hgroup>
						<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
						<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
					</hgroup>
					<?php endif;?>
					<div class="languange" id="languange"><?php do_action('icl_language_selector'); ?></div>
				</div><!--[end:site-branding]-->	
				<nav id="site-navigation" class="main-navigation" role="navigation">
					<h1 class="menu-toggle"><?php _e( 'Menu', 'woodranch' ); ?></h1>
					<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'woodranch' ); ?></a>
					<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
				</nav><!-- #site-navigation -->
				
			</header><!--[end:header]-->